home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_pru_slashvineb.cog < prev    next >
Text File  |  1999-11-15  |  2KB  |  66 lines

  1.  
  2. # Jones 3D Cog Script
  3. #
  4. # PRU_SlashVineB.cog
  5. #
  6. # Modified version of gen_SlashGrate.cog by [YB].
  7. # Damage the face with Machete to allow move through. 
  8. # "B" version uses different sprite in symbols table.
  9. #
  10. # [TRM]     [GGJ]
  11. #
  12. # (C) 1998 LucasArts Entertainment Co. All Rights Reserved
  13. # ========================================================================================
  14. symbols
  15.     message     startup
  16.     message     damaged
  17.     
  18.     thing        vineGhost
  19.     thing        leaf        local
  20.     
  21.     surface     web            mask=0x8
  22.     surface        webback        mask=0x8
  23.     
  24.     vector        leafVel        local
  25.     
  26.     template    leaf0=vinedebris    local
  27.     
  28.     int         type        local
  29.     int         player        local
  30.     int            leafNum=0    local
  31.     int            numLeaves=2    local
  32.     
  33. end
  34. # ========================================================================================
  35. code
  36.  
  37. startup:
  38.  
  39.     player = GetLocalPlayerThing();
  40.     return;
  41.     
  42. # ========================================================================================
  43. damaged:
  44.     
  45.     if (GetParam(1) == 0x20)
  46.     {
  47.         SetWallCel(web, 1);
  48.         SetWallCel(webback, 1);
  49.         ClearAdjoinFlags(web, 0x10);
  50.         SetAdjoinFlags(webback, 2);
  51.  
  52.             for(leafNum=0; leafNum<numLeaves; leafNum=leafNum+1)                                                                        
  53.             {                                                                                                    
  54.                 leaf=CreateThing(leaf0, vineGhost);
  55.                 leafVel = VectorSet(0, 0, -0.1);
  56.                 SetThingVel(leaf, VectorScale(leafVel, 0.7));
  57.             }
  58.    
  59.     }
  60.         
  61.     return;
  62.  
  63. # ========================================================================================
  64. end
  65.  
  66.